<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>插件配置 | lowcode</title>
    <meta name="description" content="">
    <meta name="generator" content="VuePress 1.9.7">
    <link rel="icon" href="/assets/logo.png">
    <meta name="description" content="低代码工具">
    <meta name="referrer" content="never">
    <meta name="keywords" content="lowcode">
    <link rel="preload" href="/assets/css/0.styles.9b0a5037.css" as="style"><link rel="preload" href="/assets/js/app.9e4f828f.js" as="script"><link rel="preload" href="/assets/js/2.63a13152.js" as="script"><link rel="preload" href="/assets/js/9.b2f4095e.js" as="script"><link rel="prefetch" href="/assets/js/10.21256974.js"><link rel="prefetch" href="/assets/js/11.c8692837.js"><link rel="prefetch" href="/assets/js/12.f3273b7c.js"><link rel="prefetch" href="/assets/js/13.4485523d.js"><link rel="prefetch" href="/assets/js/14.b5a376cd.js"><link rel="prefetch" href="/assets/js/15.f3c4584a.js"><link rel="prefetch" href="/assets/js/16.2d7cc251.js"><link rel="prefetch" href="/assets/js/17.8b66ec9b.js"><link rel="prefetch" href="/assets/js/3.cf42858e.js"><link rel="prefetch" href="/assets/js/4.0301f468.js"><link rel="prefetch" href="/assets/js/5.cfdf5b5e.js"><link rel="prefetch" href="/assets/js/6.3c92ec7c.js"><link rel="prefetch" href="/assets/js/7.9cd0ba8d.js"><link rel="prefetch" href="/assets/js/8.71b6f748.js">
    <link rel="stylesheet" href="/assets/css/0.styles.9b0a5037.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="ant-row"><div class="nav-button"><i aria-label="icon: bars" class="anticon anticon-bars"><svg viewBox="0 0 1024 1024" focusable="false" data-icon="bars" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z"></path></svg></i> <span></span></div> <div class="ant-col ant-col-xs-24 ant-col-sm-24 ant-col-md-6 ant-col-lg-5 ant-col-xl-5 ant-col-xxl-4"><a href="/" class="router-link-active home-link"><img src="/assets/logo.png" alt="lowcode" class="logo"> <span class="site-name">lowcode</span></a> <div class="search-box mobile-search"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div></div> <div class="ant-col ant-col-xs-0 ant-col-sm-0 ant-col-md-18 ant-col-lg-19 ant-col-xl-19 ant-col-xxl-20"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><ul role="menu" id="nav" class="ant-menu ant-menu-horizontal ant-menu-root ant-menu-light"><li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none;"><div aria-haspopup="true" class="ant-menu-submenu-title"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li role="menuitem" class="ant-menu-item"><a href="/" class="router-link-active">
          首页
        </a></li><li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none;"><div aria-haspopup="true" class="ant-menu-submenu-title"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li role="menuitem" class="ant-menu-item ant-menu-item-selected"><a href="/lowcode-vscode/" class="router-link-active">
          lowcode-vscode
        </a></li><li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none;"><div aria-haspopup="true" class="ant-menu-submenu-title"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li role="menuitem" class="ant-menu-item"><a href="/lowcode-mock/">
          lowcode-mock
        </a></li><li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none;"><div aria-haspopup="true" class="ant-menu-submenu-title"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li role="menuitem" class="ant-menu-item"><a href="https://lowcoding.gitee.io/" target="_blank">
          国内镜像
          <i aria-label="icon: link" class="anticon anticon-link"><svg viewBox="64 64 896 896" focusable="false" data-icon="link" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"></path></svg></i></a></li><li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="visibility:hidden;position:absolute;"><div aria-haspopup="true" class="ant-menu-submenu-title"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li></ul> <a href="https://github.com/lowcoding" target="_blank" rel="noopener noreferrer" class="repo-link"><i aria-label="icon: github" class="anticon anticon-github"><svg viewBox="64 64 896 896" focusable="false" data-icon="github" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"></path></svg></i></a></nav></div></div> <!----></header> <aside class="sidebar"><div><div class="promo"><div id="promo_3"><div class="promo_title">赞助商</div> <button type="button" class="ant-btn ant-btn-primary ant-btn-background-ghost"><span>成为赞助商</span></button></div></div> <div role="separator" id="reset-margin" class="ant-divider ant-divider-horizontal ant-divider-dashed"></div></div> <ul class="sidebar-links"><li><a href="/lowcode-vscode/" aria-current="page" title="关于" class="sidebar-link">关于</a></li><li><a href="/lowcode-vscode/getting-started.html" title="快速上手" class="sidebar-link">快速上手</a></li><li><section class="sidebar-group depth-0"><a href="/lowcode-vscode/detailed-features/" class="sidebar-heading clickable"><span>具体功能及使用指南</span> <!----></a> <ul class="sidebar-links sidebar-group-items"><li><a href="/lowcode-vscode/detailed-features/generate-code-by-command.html" title="生成代码" class="sidebar-link">生成代码</a></li><li><a href="/lowcode-vscode/detailed-features/generate-code-by-webview.html" title="可视化生成代码" class="sidebar-link">可视化生成代码</a></li><li><a href="/lowcode-vscode/detailed-features/quick-add-snippet.html" title="添加代码片段" class="sidebar-link">添加代码片段</a></li></ul></section></li><li><a href="/lowcode-vscode/create-materials.html" title="物料开发" class="sidebar-link">物料开发</a></li><li><a href="/lowcode-vscode/create-scaffold.html" title="脚手架开发" class="sidebar-link">脚手架开发</a></li><li><a href="/lowcode-vscode/config.html" aria-current="page" title="插件配置" class="active sidebar-link">插件配置</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/lowcode-vscode/config.html#通过-webview-进行配置" title="通过 webview 进行配置" class="sidebar-link">通过 webview 进行配置</a></li><li class="sidebar-sub-header"><a href="/lowcode-vscode/config.html#配置-yapi" title="配置 yapi" class="sidebar-link">配置 yapi</a></li><li class="sidebar-sub-header"><a href="/lowcode-vscode/config.html#配置-mock" title="配置 mock" class="sidebar-link">配置 mock</a></li><li class="sidebar-sub-header"><a href="/lowcode-vscode/config.html#保存配置" title="保存配置" class="sidebar-link">保存配置</a></li></ul></li><li><a href="/lowcode-vscode/change-log.html" title="更新日志" class="sidebar-link">更新日志</a></li><li><a href="/lowcode-vscode/todo.html" title="TODO" class="sidebar-link">TODO</a></li></ul></aside> <main class="page"> <div class="theme-antdocs-content content__default"><h2 id="通过-webview-进行配置">通过 webview 进行配置 <a href="#通过-webview-进行配置" class="header-anchor">#</a></h2> <p><img src="https://fastly.jsdelivr.net/gh/migrate-gitee/img-hosting@latest/2020/11/10/1604991773732.png" alt=""></p> <h2 id="配置-yapi">配置 yapi <a href="#配置-yapi" class="header-anchor">#</a></h2> <p><strong>域名</strong></p> <p>拉取 yapi 接口信息时使用到的域名。</p> <p><strong>项目列表</strong></p> <p><code>名称</code></p> <p>任意名称都行，建议与 yapi 上项目名称保持一致。</p> <p><code>token</code></p> <p>yapi 项目 token。</p> <p><img src="https://fastly.jsdelivr.net/gh/migrate-gitee/img-hosting@latest/2020/11/10/1604992761667.png" alt=""></p> <p><code>域名</code></p> <p>未配置则使用之前统一配置的域名。</p> <h2 id="配置-mock">配置 mock <a href="#配置-mock" class="header-anchor">#</a></h2> <p>mock 相关内容可查看 <a href="/lowcode-vscode/detailed-features/generate-code-by-command.html#模板数据">生成代码 - 模板数据</a> 相关内容</p> <h2 id="保存配置">保存配置 <a href="#保存配置" class="header-anchor">#</a></h2> <ul><li><p>保存至项目 <code>package.json</code> 文件</p></li> <li><p>保存至 vscode 本地配置</p></li></ul> <blockquote><p>优先从 <code>package.json</code> 读取</p></blockquote></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">5/21/2022, 8:45:47 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev"><a href="/lowcode-vscode/create-scaffold.html" class="prev"><i aria-label="icon: left" class="anticon anticon-left"><svg viewBox="64 64 896 896" focusable="false" data-icon="left" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"></path></svg></i>
        脚手架开发
      </a></span> <span class="next"><a href="/lowcode-vscode/change-log.html">
        更新日志
        <i aria-label="icon: right" class="anticon anticon-right"><svg viewBox="64 64 896 896" focusable="false" data-icon="right" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></i></a></span></p></div> </main> <!----></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.9e4f828f.js" defer></script><script src="/assets/js/2.63a13152.js" defer></script><script src="/assets/js/9.b2f4095e.js" defer></script>
  </body>
</html>